package com.lizheng.yunservice.travel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lizheng.yunservice.travel.doamin.VtpGoodsImgPageSearch;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface VtpGoodsImgMapperPageSearch extends BaseMapper<VtpGoodsImgPageSearch> {

    @Select("SELECT url " +
            "FROM vtp_goods_img " +
            "WHERE goods_id = #{goodsId} " +
            "AND img_type = #{imgType} " +
            "AND delete_flag = 0")
    List<String> selectGoodsImgUrls(@Param("goodsId") Long goodsId, @Param("imgType") Integer imgType);
}